package com.ktgj.flight.controller;

import com.ktgj.common.core.web.domain.AjaxResult;
import com.ktgj.flight.common.airStationPrint.AirStationPrint;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/airStationPrint")
public class AirStationPrintController {
    @Autowired
    private AirStationPrint stationPrint;

    @PostMapping("/AddTicketNo")
    public AjaxResult AddTicketNo(@RequestBody Map<String, Object> map) {
        String ticketNo = String.valueOf(map.get("ticketNo"));
        String phone = String.valueOf(map.get("phone"));
        String addTicketNo = stationPrint.AddTicketNo(ticketNo, phone);
        return AjaxResult.success(addTicketNo);
    }
}
